export interface IStatus {
    value: string;
    name: string;
    translate?: string;
}

export const Statuses: IStatus[] = [
    { value: 'PENDING', name: '审核中' },
    { value: 'CANCELED', name: '申请关闭' },
    { value: 'APPROVAL', name: '待转账' },
    { value: 'COMPLETED', name: '提现完成' },
    { value: 'CANCEL_TRANSFER', name: '提现取消' },
    { value: 'REJECTED', name: '拒绝申请' }
]

// export const statusValueMapper: (value: string) => IStatus = (value) => {
//     const index = Statuses.findIndex(v => v.value === value);
//     if (index > -1) {
//         return Statuses[index];
//     } else {
//         throw new Error(`${value} is illegal`);
//     }
 
// }
